jQuery(document).ready(function($){
	$("#side .screen > .button").click(function(){
		var c = $(this).next(".content");
		var html= "<div class='open screen'>";
		html +=		"<div class='ui title grid'>";
		html +=			"<div class='ten wide title column'>";
		html +=				c.attr("title");
		html +=			"</div>";
		html +=			"<div class='six wide column'>";
		html +=				"<a class='ui fluid black back button'><i class='ui arrow left icon'></i> back</a>";
		html +=			"</div>";
		html +=		"</div>";
		html +=		"<div class='content'></div>";
		html +=	 "</div>";
		$("#side").append(html);
		$("#side > .open.screen > .content").append(c.html());
		$("#side > .open.screen .back.button").click(function(){
			$("#side > .open.screen").remove();
		});
	});
});